package com.hson.demo.soa.service.remote.school;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hson.demo.base.remote.hessian.annotations.HessianServer;
import com.hson.demo.soa.dao.school.ClassesDao;
import com.hson.demo.soa.dto.ClassesDTO;
import com.hson.demo.soa.remote.ClassesServiceRemote;

@Service
@HessianServer
public class ClassesServiceRemoteImpl implements ClassesServiceRemote {

	@Autowired
	private ClassesDao classesDao;
	
	@Override
	public List<ClassesDTO> listClasses() {
		return classesDao.listClasses();
	}

}
